package com.xcl.pojo;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Category {
    private Integer id;

    @NotBlank(message = "分类名称不能为空")
    private String categoryName;

    @NotBlank(message = "别名不能为空")
    private String categoryAlias;
    private Integer createUser;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

}
